$(function () {
    $('#container').highcharts({
        title: {
            text: '一周锻炼计划',
            x: -20 //center
        },
        subtitle: {
            text: '',
            x: -20
        },
        xAxis: {
            categories: ['周一', '周二', '周三', '周四', '周五', '周六',
                '周日']
        },
        yAxis: {
            title: {
                text: '时长（分钟）'
            },
            plotLines: [{
                value: 0,
                width: 1,
                color: '#808080'
            }]
        },
        tooltip: {
            valueSuffix: '分钟'
        },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'middle',
            borderWidth: 0
        },
        series: [{
            name: '跑步机',
            data: [20, 25, 20, 20, 30, 20, 20]
        }, {
            name: '划船器',
            data: [10, 7, 20, 10, 7, 0, 10]
        }, {
            name: '肌肉组',
            data: [10, 15, 20, 10, 10, 10, 10]
        }, {
            name: '仰卧器',
            data: [10, 0, 0, 9, 10, 14, 10]
        }, {
            name: '健步车',
            data: [10, 0, 0, 6, 10, 13, 10]
        }, {
            name: '美腰机',
            data: [0, 10, 0, 7, 10, 11, 10]
        }, {
            name: '登梯器',
            data: [0, 10, 0, 8, 10, 17, 10]
        }, {
            name: '引体杆',
            data: [10, 0, 0, 10, 10, 16, 10]
        }, {
            name: '瑜伽球',
            data: [5, 5, 0, 5, 0, 19, 10]
        }]
    });
});